package com.yyx.service;


import com.yyx.anno.Autowired;
import com.yyx.anno.Component;
import com.yyx.anno.Qualifier;
import com.yyx.dao.UserDao;

@Component
public class UserServiceImpl implements UserService {

    @Autowired
    @Qualifier("UserDaoImpl1")
    UserDao UserDaoImpl;

    @Override
    public void find() {
        System.out.println("service");
        UserDaoImpl.query();
    }

//    public void setDao(UserDao dao) {
//        this.dao = dao;
//    }
//
//    public UserServiceImpl(UserDao dao){
//        this.dao=dao;
//    }
}
